import 'package:flutter/material.dart';
class AddContacts extends StatefulWidget {
  AddContacts({Key key}) : super(key: key);

  @override
  _AddContactsState createState() => _AddContactsState();
}

class _AddContactsState extends State<AddContacts> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          Expanded(
            flex:1,
            child:Container(
              width: 800,
              padding: EdgeInsets.fromLTRB(0, 35, 0, 0),
              decoration: BoxDecoration(
                gradient: LinearGradient(
                  begin: Alignment.topCenter,
                  end: Alignment.bottomCenter,
                  stops: [0.0, 1.0],
                  colors:[Color.fromRGBO(243, 110, 71, 1), Color.fromRGBO(255, 255, 146, 1)],
                ),
              ),
              child: Column(
                children: [
                  //title
                  Row(
                    children: [
                      SizedBox(width:15),
                      IconButton(icon:Icon(Icons.navigate_before),onPressed: (){
                        //返回上目录
                        Navigator.pop(context);
                      },color: Colors.white,),
                      Text('添加联系人',style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize:14),),
                    ],
                  ),
                  //content
                  Expanded(
                    child:Container(
                      decoration: BoxDecoration(
                        color: Colors.white
                      ),
                      child: Column(
                        children: [
                          SizedBox(height:20),
                          Row(
                              mainAxisAlignment: MainAxisAlignment.spaceAround,
                              children: [
                                SizedBox(width: 20,),
                                Container(
                                  height: 32,
                                  width: 272,
                                  alignment: Alignment.bottomCenter,
                                  child: TextField(
                                    
                                    decoration: InputDecoration(
                                      border: OutlineInputBorder(
                                        borderRadius: BorderRadius.circular(150)
                                      ),
                                      hintText: "联系人",
                                      hintStyle: TextStyle(
                                        color: Colors.grey,
                                      ),
                                      filled: true,
                                      fillColor: Color.fromRGBO(241, 241, 241, 1),
                                      contentPadding: EdgeInsets.fromLTRB(0, 10, 0, 0),
                                      prefixIcon: Icon(Icons.search),
                                      labelText: '联系人',
                                      
                                    ),
                                    textAlign: TextAlign.start,
                                  ),
                                ),
                                Text('搜索',style: TextStyle(
                                  color: Color.fromRGBO(234, 110, 71, 1),
                                  fontSize: 15,
                                  fontWeight: FontWeight.bold
                                ),),
                                SizedBox(width: 20,)
                              ],
                          ),
                        
                        ],
                      )
                    )
                  )
                ]
              ),
            )
          )
        ],
      )
    );
  }
}
